package mjc.egg;
import mjc.compiler.*;
import mjc.gc.*;
import mg.egg.eggc.compiler.libjava.lex.*;
import mg.egg.eggc.compiler.libjava.messages.*;
import mg.egg.eggc.compiler.libjava.*;
import mg.egg.eggc.compiler.libjava.problem.IProblem;
import java.util.Vector;
public class S_PARFSX_MJAVA {
LEX_MJAVA scanner;
  S_PARFSX_MJAVA() {
    }
  S_PARFSX_MJAVA(LEX_MJAVA scanner) {
    this.scanner = scanner;
    this.att_scanner = scanner;
    }
int [] sync= new int[0];
  Liste<Integer, INFOVar> att_param;
  Integer att_cle;
  TDS att_tds;
  LEX_MJAVA att_scanner;
  private void regle19() throws Exception {

    //declaration
    //appel
      action_init_19();
  }
  private void regle20() throws Exception {

    //declaration
    T_MJAVA x_2 = new T_MJAVA(scanner ) ;
    S_PARF_MJAVA x_3 = new S_PARF_MJAVA(scanner) ;
    S_PARFSX_MJAVA x_4 = new S_PARFSX_MJAVA(scanner) ;
    //appel
      action_auto_inh_20(x_3, x_4);
    x_2.analyser(LEX_MJAVA.token_virg);
    x_3.analyser() ;
    x_4.analyser() ;
      action_reg2_20(x_3, x_4);
  }
private void action_init_19() throws Exception {
try {
// locales
Liste<Integer, INFOVar> loc_l;
// instructions
this.att_cle=0;
loc_l= new Liste<Integer, INFOVar>();
this.att_param=loc_l;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_reg2_20(S_PARF_MJAVA x_3, S_PARFSX_MJAVA x_4) throws Exception {
try {
// instructions
this.att_cle=1+x_4.att_cle;
this.att_param=x_4.att_param.ajouter(1+x_4.att_cle, x_3.att_var);
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_auto_inh_20(S_PARF_MJAVA x_3, S_PARFSX_MJAVA x_4) throws Exception {
try {
// instructions
x_3.att_tds=this.att_tds;
x_4.att_tds=this.att_tds;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
  public void analyser () throws Exception {
    scanner.lit ( 1 ) ;
    switch ( scanner.fenetre[0].code ) {
      case LEX_MJAVA.token_parf : // 66271
        regle19 () ;
      break ;
      case LEX_MJAVA.token_virg : // 66276
        regle20 () ;
      break ;
      default :
               scanner._interrompre(IProblem.Syntax, scanner.getBeginLine(), IMJAVAMessages.id_MJAVA_unexpected_token,MJAVAMessages.MJAVA_unexpected_token,new String[]{scanner.fenetre[0].getNom()});
    }
  }
  }
